package com.shensi.adminCollect.domain.customer.dto;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @date 2023/11/9
 */
@Setter
@Getter
public class ElectronicCardSubRes {
    /**
     * 是否扣减
     */
    private boolean success;
    /**
     * 扣减的充值金额
     */
    private BigDecimal amt;
    /**
     * 扣减的赠送金额
     */
    private BigDecimal presentAmt;

    public static ElectronicCardSubRes newInstance(){
        ElectronicCardSubRes res = new ElectronicCardSubRes();
        res.success = false;
        res.amt = BigDecimal.ZERO;
        res.presentAmt = BigDecimal.ZERO;
        return res;
    }
}
